<?php
include_once('../bootstrap.php');
$slider = Doctrine::getTable('slider')->find($_POST['id']);
foreach($slider->imagenes as $img) {
    @unlink(INC.'content/slider/'.$img->src);
    @unlink(INC.'content/slier/o/'.$img->src);
    $img->delete();
}
$slider->delete();
?>
